<?php
require_once "BaseController.php";
require_once "User.php";

class HistoryController extends BaseController  {

	function init() {
		BaseController::init();
		BaseController::isLogggedIn();		
	}
	
	function IndexAction() {
		$db = BaseController::getDBConnection();
		$userTable = new User($db);
		$result = $userTable->fetchRow("name = 'hugo'");
		Zend_Debug::dump($result);
		
		$newEntry = $userTable->createRow();
		$newEntry->name = "bugo";
		$newEntry->passwd = "hugo";
		Zend_Debug::dump($newEntry->save());
	}
}